<?php

namespace SpecialOperations\GameBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * SpecialOperations\GameBundle\Entity\QueuePosition
 */
class QueuePosition
{
    const ACTION_BUILD = 'BUILD';
    const ACTION_REPAIR = 'REPAIR';
    const ACTION_DESTROY = 'DESTROY';
    /**
     * @var string $action
     */
    private $action;

    /**
     * @var integer $place
     */
    private $place;

    /**
     * @var datetime $created
     */
    private $created;

    /**
     * @var datetime $updated
     */
    private $updated;

    /**
     * @var bigint $id
     */
    private $id;

    /**
     * @var SpecialOperations\GameBundle\Entity\Building
     */
    private $building;

    /**
     * @var SpecialOperations\GameBundle\Entity\BuildingQueue
     */
    private $queue;


    /**
     * Set action
     *
     * @param string $action
     */
    public function setAction($action)
    {
        $this->action = $action;
    }

    /**
     * Get action
     *
     * @return string 
     */
    public function getAction()
    {
        return $this->action;
    }

    /**
     * Set place
     *
     * @param integer $place
     */
    public function setPlace($place)
    {
        $this->place = $place;
    }

    /**
     * Get place
     *
     * @return integer 
     */
    public function getPlace()
    {
        return $this->place;
    }

    /**
     * Set created
     *
     * @param datetime $created
     */
    public function setCreated($created)
    {
        $this->created = $created;
    }

    /**
     * Get created
     *
     * @return datetime 
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set updated
     *
     * @param datetime $updated
     */
    public function setUpdated($updated)
    {
        $this->updated = $updated;
    }

    /**
     * Get updated
     *
     * @return datetime 
     */
    public function getUpdated()
    {
        return $this->updated;
    }

    /**
     * Get id
     *
     * @return bigint 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set building
     *
     * @param SpecialOperations\GameBundle\Entity\Building $building
     */
    public function setBuilding(\SpecialOperations\GameBundle\Entity\Building $building)
    {
        $this->building = $building;
    }

    /**
     * Get building
     *
     * @return SpecialOperations\GameBundle\Entity\Building 
     */
    public function getBuilding()
    {
        return $this->building;
    }





    /**
     * @var SpecialOperations\GameBundle\Entity\District
     */
    private $district;


    /**
     * Set district
     *
     * @param SpecialOperations\GameBundle\Entity\District $district
     */
    public function setDistrict(\SpecialOperations\GameBundle\Entity\District $district)
    {
        $this->district = $district;
    }

    /**
     * Get district
     *
     * @return SpecialOperations\GameBundle\Entity\District 
     */
    public function getDistrict()
    {
        return $this->district;
    }
}